﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Coldairarrow.Entity.PB
{
    /// <summary>
    /// PB_StockLog
    /// </summary>
    [Table("PB_StockLog")]
    public partial class PB_StockLog
    {

        /// <summary>
        /// 主键ID
        /// </summary>
        [Key, Column(Order = 1)]
        public String Id { get; set; }

        /// <summary>
        /// 打包ID
        /// </summary>
        public String PackId { get; set; }

        /// <summary>
        /// 仓库id
        /// </summary>
        public string StorId { get; set; }

        /// <summary>
        /// 货位ID
        /// </summary>
        public String LocationId { get; set; }

        /// <summary>
        /// 物料id
        /// </summary>
        public String MaterialId { get; set; }

        /// <summary>
        /// 包内物料数量
        /// </summary>
        public Double? StockNumber { get; set; }

        /// <summary>
        /// 操作人Id
        /// </summary>
        public String OperatorId { get; set; }

        /// <summary>
        /// 创建人ID
        /// </summary>
        public String CreatorId { get; set; }

        /// <summary>
        /// 删除状态：0=未删除；1＝已删除；
        /// </summary>
        public Boolean Deleted { get; set; }

        /// <summary>
        /// 创建人名称
        /// </summary>
        public String CreatorName { get; set; }
        /// <summary>
        /// 入库类型 1.成品入库 2.材料入库
        /// </summary>
        public int? Type { get; set; }
        /// <summary>
        /// 关联单号(TD_Receiving)
        /// </summary>
        public string OrderID { get; set; }

        /// <summary>
        /// 创建日期
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 状态：0-入库(入库单id)；1-出库(orderId=备货单id);2-移库;3-调拨出库;4-调拨入库
        /// </summary>
        public int? State { get; set; }

        /// <summary>
        /// 是否新旧：0-旧；1-新
        /// </summary>
        public int? OldOrNew { get; set; }

        /// <summary>
        /// 流转单Id
        /// </summary>
        public String CirBillId { get; set; }

        /// <summary>
        /// 成品Id
        /// </summary>
        public String JobId { get; set; }

    }
}